import axios from 'axios'

var instance = axios.create({});

//当实例创建时候修改配置
instance.defaults.headers.common["token"] = localStorage.Token;



export default {
    install: function(Vue) {
        // 将$http 绑定到Vue.prototype上 并且该属性为只读
        Object.defineProperty(Vue.prototype, '$axios', { value: axios });
    }
}